import React, { useState } from 'react'
import Child from './Child'

const index = () => {
    const [num, numSet] = useState(0)

    console.log('parent render')

    return (
        <div>
            <Child num={num} />
            {/* <button onClick={() => {numSet(num + 1)}}>+1</button> */}
        </div>
    )
}

export default index
